Skip to content

Remove excessive reloading before VS Code is ready #4589

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 7, 2021

Conversation

code-asher
Copy link
Member

The watch script was reloading the web server after every extension
compilation which is not necessary plus VS Code will not even be ready
at that point anyway.

Instead restart when the main compilation is finished. The string to
match with includes a "with" because otherwise it would match "Finished
compilation extensions" which is not the main compilation task where we
actually need to restart the web server.

I also replaced this.log with console.log because the former does not
include a newline and it appears we want newlines with all
these (otherwise the next log starts on the same line which looks odd).

I removed the cache clean as well because the cache is meant to stay
there to speed up builds.

@code-asher code-asher requested a review from a team as a code owner December 7, 2021 22:31
The watch script was reloading the web server after every extension
compilation which is not necessary plus VS Code will not even be ready
at that point anyway.

Instead restart when the main compilation is finished.  The string to
match with includes a "with" because otherwise it would match "Finished
compilation extensions" which is not the main compilation task where we
actually need to restart the web server.

I also replaced this.log with console.log because the former does not
include a newline and it appears we want newlines with all
these (otherwise the next log starts on the same line which looks odd).

I removed the cache clean as well because the cache is meant to stay
there to speed up builds.
@codecov
Copy link

codecov bot commented Dec 7, 2021

Codecov Report

Merging #4589 (00d64ab) into main (6c9c840) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #4589   +/-   ##
=======================================
  Coverage   65.52%   65.52%           
=======================================
  Files          30       30           
  Lines        1665     1665           
  Branches      334      334           
=======================================
  Hits         1091     1091           
  Misses        485      485           
  Partials       89       89           
Impacted Files Coverage Δ
src/node/util.ts 73.13% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6c9c840...00d64ab. Read the comment docs.

@jsjoeio jsjoeio added this to the 4.0.0 milestone Dec 7, 2021
Copy link
Contributor

@jsjoeio jsjoeio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice adjustments! I think this will be a solid improvement

@code-asher code-asher changed the title Reduce excessive reloading before VS Code is ready Remove excessive reloading before VS Code is ready Dec 7, 2021
@code-asher code-asher merged commit c3eb9b8 into coder:main Dec 7, 2021
@code-asher code-asher deleted the watch-reloads branch December 7, 2021 23:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants